import request from '@/utils/request'

// 获取文章分类列表
export const getCateListAPI = () => {
  return request.get('/my/cate/list')
}

// 新增文章分类
export const addCateAPI = data => {
  return request.post('/my/cate/add', data)
}

// 删除文章分类
export const delCateAPI = id => {
  return request.delete('/my/cate/del', { params: { id } })
}

// 获取修改的分类
export const getUpdataCateAPI = id => {
  return request.get('/my/cate/info', { params: { id } })
}

// 修改文章分类
export const UpdataCateAPI = data => {
  return request.put('/my/cate/info', data)
}
